layui.define(['layer','form','laydate'], function(exports) {
    var $ = layui.jquery;
    var layer=layui.layer;
    var form = layui.form();
    var laydate = layui.laydate;
    var repair_edit = function () {};

    repair_edit.prototype.init=function() {
        $('#btn_save').click(function () {
            if ($("#content").val() == "") {
                layer.msg("内容不能为空");
                return false;
            }
            $.post("/html/repair/srv/repair_takes_code.php", $("#form1").serialize(), function (d) {
                layer.msg(d);
                setTimeout("parent.layer.close(parent.layer.getFrameIndex(window.name))", 2000)
            });


        });
    }
    var repairEdit=new repair_edit();
    repairEdit.init();

    exports('repair_takes_code',repairEdit);
});